/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.behavioral.memento;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author jmg
 */
public class CareTaker {
    
    private  List<Memento> mementos;

    public CareTaker() {
      mementos = new ArrayList();
    }
    
    public void addMemento(Memento memento){
        mementos.add(memento);
    }
    
    public Memento getMemento(int index){
        return mementos.get(index);
    }
    
    
    
}
